﻿@model IEnumerable<HdipCricketClub.Models.ClubFixturePlayer>

@{
    ViewBag.Title = "Confirm Team & Contact Players";
}

<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("ConfirmTeam", "SelectTeam", FormMethod.Post))
{
<table>
    <tr>
        <th>
            Name:
        </th>
        <th>
            Contact:
        </th>
        <th>
            Confirmed:
        </th>
     </tr>

@foreach (var item in Model)
{
    <tr>
            @Html.HiddenFor(modelItem => item.fixture_id)
            @Html.HiddenFor(modelItem => item.player_no)
            @Html.HiddenFor(modelItem => item.player_id)
        <td>
            @Html.DisplayFor(modelItem => item.Member.first_name) @Html.DisplayFor(modelItem => item.Member.last_name)
        </td>
        <td>
            @Html.EditorFor(modelItem => item.contact)
        </td>
        <td>
            @Html.EditorFor(modelItem => item.confirmed)
        </td>
     </tr>
}

</table>

    <p>
        <input type="submit" value="Confirm Team & Contact Players" />
    </p>
}


